#ifndef NETWORKDEFINITIONS_H
#define NETWORKDEFINITIONS_H

#define NET_BLOCKING 0
#define NET_NON_BLOCKING 1

#define NET_DEFAULT_PORT 30000
#define NET_MAX_DATA 8096

#define NET_BROADCAST 1
#define NET_BROADCAST_IP 4294967295 // 255.255.255.255

#define SNAP_RATE(x) 1000.0f / x

enum CL_NET_MSG { CL_CONNECT = 0, CL_DISCONNECT, CL_BROADCAST, CL_PLAYER_MOVE, CL_MAX };

enum SV_NET_MSG { SV_CONNECT = 0, SV_FULL, SV_SHUTDOWN, SV_PLAYER_MOVE, SV_MAX };

enum NET_MSG_TYPE { MSG_UNRELIABLE = 0, MSG_RELIABLE };

#endif